<!-- templates/edit_exam_question.html -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑题目</title>
     <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <h1>编辑题目</h1>
    <form method="POST">
        <div class="form-group">
            <label for="question_text">题目内容:</label><br>
            <textarea id="question_text" name="question_text" rows="4" cols="50">{{ question.question_text }}</textarea>
        </div>
        <div class="form-group">
            <label for="option_a">选项A:</label>
            <input type="text" id="option_a" name="option_a" value="{{ question.option_a }}"><br>
        </div>
        <div class="form-group">
            <label for="option_b">选项B:</label>
            <input type="text" id="option_b" name="option_b" value="{{ question.option_b }}"><br>
        </div>
        <div class="form-group">
            <label for="option_c">选项C:</label>
            <input type="text" id="option_c" name="option_c" value="{{ question.option_c }}"><br>
        </div>
        <div class="form-group">
            <label for="option_d">选项D:</label>
            <input type="text" id="option_d" name="option_d" value="{{ question.option_d }}"><br>
        </div>
        <div class="form-group">
            <label for="correct_answer">正确答案:</label>
            <input type="text" id="correct_answer" name="correct_answer" value="{{ question.correct_answer }}"><br>
        </div>
        <button type="submit">保存更改</button>
    </form>
</body>
</html>
